package cn.bugDance.domain.activity.model.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.SimpleDateFormat;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ActivityMonthAccountEntity {
    private static SimpleDateFormat monthFormat = new SimpleDateFormat("yyyy-MM");
    private String userId;
    private Long activityId;
    private String month;
    private Integer monthCount;
    private Integer monthCountSurplus;


    public static String currentMonth(){
        return monthFormat.format(new Date());
    }


}
